<template>
  <div id="app">
    <!-- 头部 -->
    <div class="header">黑马商城</div>
    <!-- 中间内容区 -->
    <router-view></router-view>
    <!-- 底部 -->
    <van-tabbar v-model="active" route>
      <van-tabbar-item to="/home" icon="wap-home">首页</van-tabbar-item>
      <van-tabbar-item  to="/member" icon="user-o">会员</van-tabbar-item>
      <van-tabbar-item  to="/shopcar" icon="cart-o">购物车</van-tabbar-item>
      <van-tabbar-item  to="/search" icon="search">搜索</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0
    }
  },
  created() {

  },
  methods: {

  }
};
</script>>

<style lang="less">
.header {
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: skyblue;
  color: #fff;
}
</style>
